package com.maxlen.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.maxlen.common.utils.PageUtils;
import com.maxlen.common.utils.R;
import com.maxlen.member.entity.MemberEntity;
import com.maxlen.member.entity.dto.MemberSaveDTO;
import com.maxlen.member.entity.vo.LoginVO;
import com.maxlen.member.entity.vo.UserRegisterVO;

import java.util.Map;

/**
 * 会员
 *
 * @author MaxLen
 * @email MaxLen@gmail.com
 * @date 2022-10-27 10:49:30
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    R isExistUsername(String username);

    R isExistPhone(String phone);

    R isExistEmail(String email);

    R register(UserRegisterVO userRegisterVO);

    R login(LoginVO loginVO);

    R OAuthGiteeLogin(String code);

    R sendCode(String phone);

    R getMemberIntegration(Long memberId);

    R getMemberByCouponPublish();

    R getCurrentUser(String token);

    R saveCurrentUser(MemberSaveDTO memberSaveDTO);
}

